package com.myschool.dao.impl;

import com.myschool.pojo.Grade;
import com.myschool.pojo.Result;
import com.myschool.pojo.Student;
import com.myschool.pojo.Subject;
import junit.framework.Assert;
import org.junit.jupiter.api.Test;

import java.util.List;

import static org.junit.jupiter.api.Assertions.*;

class StudentDaoImplTest {

    @Test
    void show() {
//        StudentDaoImpl sd = new StudentDaoImpl();
//        List a = sd.show(Student.class);
//        Assert.assertEquals(true,a.size()>2);
        GradeDaoImpl sd = new GradeDaoImpl();
        List a = sd.showGrade(Grade.class);
        Assert.assertEquals(true,a.size()>2);
//        ResultDaoImpl rd = new ResultDaoImpl();
//        List a = rd.showResult(Result.class);
//        Assert.assertEquals(true,a.size()>2);
    }
}